home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
taropyon
/
guilib3
/
inc
/
dlg
/
dlgcolt.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
1KB
|
51 lines
/* :*****************************************************************
: "dlgcolt.h" : カラーテーブル設定用ダイアログ
:*****************************************************************
*/
#ifndef _DLGCOL_H
#define _DLGCOL_H
#ifndef _DIALOG_H
# include <dialog.h>
#endif
#ifndef _EVENT_H
# include <event.h>
#endif
#ifndef _MOUSE_H
# include <mouse.h>
#endif
#define DLGCOLT_DEFCOLTBL_NUM (32)
typedef struct
{
EVT_T *evt;
MOSTKP_T *mosTk;
char *title;
int colDspPos;
int colNum;
DLGCOLTBL_T *colTbl;
COLOR _col[DLGCOLT_DEFCOLTBL_NUM];
} DLGCOLT_T;
extern COLOR DlgColtDefColTbl[DLGCOLT_DEFCOLTBL_NUM];
/* タイトル */
#define DLGCOLT_COLTBAC(dlgColt) ((dlgColt)->_col[0])
#define DLGCOLT_COLTSTR(dlgColt) ((dlgColt)->_col[1])
#define DLGCOLT_COLTHIL(dlgColt) ((dlgColt)->_col[2])
#define DLGCOLT_COLTSHA(dlgColt) ((dlgColt)->_col[3])
/* ダイアログ背景 */
#define DLGCOLT_COLWBAC(dlgColt) ((dlgColt)->_col[4])
#define DLGCOLT_COLWSTR(dlgColt) ((dlgColt)->_col[5])
#define DLGCOLT_COLWHIL(dlgColt) ((dlgColt)->_col[6])
#define DLGCOLT_COLWSHA(dlgColt) ((dlgColt)->_col[7])
#define DLGCOLT_COLBOX1(dlgColt) ((dlgColt)->_col[8]) /* MBLACK */
#define DLGCOLT_COLBOX2(dlgColt) ((dlgColt)->_col[9]) /* HWHITE */
#define DLGCOLT_COLBOX3(dlgColt) ((dlgColt)->_col[10]) /* HRED(選択色) */
#define DLGCOLT_COLBOX4(dlgColt) ((dlgColt)->_col[11]) /* MBLACK(透明色) */
#endif